package lab02.test25;

import java.util.Scanner;

public class Test25 {
    public static void main(String[] args) {
        System.out.println("请输入除数和被除数：");
        Scanner in=new Scanner(System.in);
        int dividend =in.nextInt();
        int divisor=in.nextInt();
        try{
            System.out.println(dividend+" / "+divisor+"="+dividend/divisor);
       }
        catch (ArithmeticException e){
           System.out.println("除数为零！");
        }
    }
}
